// 导入axios工具包
import instance from '@/utils/axios.js'

// 模拟面试筛选条件
export function interviewsFilterApi() {
    return instance({
        url: '/interview/filters'
    })
}

// 获取模拟面试题
export function interviewQuestionsApi(params) {
    return instance({
        url: '/interview/questions',
        params: params,
        isToken: true
    })
}

// 提交试题
export function submitQusApi(data) {
    return instance({
        url: '/questions/submit',
        method:'POST',
        data,
        isToken: true
    })
}

// 面试题数据
export function interviewsApi(params) {
    return instance({
        url:`/questions/company/${params.id}`,
        params,
        isToken: true
    })
}